﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo1
{
    class NPCTask:NPC
    {
        private string taskInfo;
        public NPCTask(string name,NPCtype type,string taskInfo):base(name ,type)
        {
            this.taskInfo = taskInfo;
        }
        public override void Speak()
        {   
            Console.WriteLine("你好,欢迎来到任务NPC！");
            Console.WriteLine("我是{0},任务:{1}",base.Name,this.taskInfo);
        }
       
    }
}
